package com.gzwh.v1.sysapi.conntroller.hos;

import com.gzwh.v1.sysapi.utils.ReturnUtil;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import static com.gzwh.v1.sysapi.utils.DateUtil.getSysTime;

@RestController
@RequestMapping("/hos")
public class HosIndexController {
    @RequestMapping("/info")
    public ModelMap getHosInfo() {
        HashMap<String, Object> hashMap = new HashMap<>();
        hashMap.put("title", "hello world!");
        hashMap.put("content", "欢迎访问ys");
        hashMap.put("version", "1.0.100");
        hashMap.put("date", getSysTime());
        return ReturnUtil.Success(null, hashMap);
    }

    @RequestMapping("doctor/pag")
    public ModelMap getDoctorPag() {
        //标签信息
        List<String> list = new ArrayList<>();
        list.add("123");
        return ReturnUtil.Success(null, list);
    }

}
